#include "MainWindow.h"
#include "ui_MainWindow.h"
#include "DialogVideoSetup.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    this->setWindowState(Qt::WindowMaximized);

    ui->wtVideo->setGeometry(480, 10, 1440, 1000);

    // 视频
    widgetVideo = new WidgetVideo(ui->wtVideo);

}

MainWindow::~MainWindow()
{
    delete ui;
    delete widgetVideo;
}

void MainWindow::on_btnViduoSetup_clicked()
{
    DialogVideoSetup dlgVideoSetup;
    dlgVideoSetup.move(0, 100);

    dlgVideoSetup.setCamera(widgetVideo, ui->wtVideo);

    dlgVideoSetup.exec();
}
